package main

import "fmt"

type MethodUtils struct {
}

//给util写方法
func (m MethodUtils) printSquires() {
	for i := 0; i < 10; i++ {
		for j := 0; j < 8; j++ {
			fmt.Print("*")
		}
		fmt.Println("\n")
	}
}

//计算面积
func (m *MethodUtils) area(len float64, width float64) float64 {
	return len * width
}
func main() {
	a := MethodUtils{}
	a.printSquires()
	b := a.area(3.55, 6.18)
	fmt.Println(b)
}
